package com.itheima.类加载与反射.类加载器.案例一;

import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;

public class ClassLoader类加载器 {
    public static void main(String[] args) throws IOException {
        ClassLoader cl = ClassLoader.getSystemClassLoader();
        InputStream inputStream = cl.getResourceAsStream("prop.properties");
        Properties prop = new Properties();
        prop.load(inputStream);
        System.out.println(prop);
        inputStream.close();
    }
}
